package com.wzh.provicer.service.impl;

import com.wzh.api.entity.Order;
import com.wzh.api.service.OrderService;
import com.wzh.core.annotation.RpcProvider;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: wangzouhuax
 */
@RpcProvider
@Service
public class OrderServiceImpl implements OrderService {

    @Override
    public Order getOrder(String orderName) {
        return new Order(1, orderName, "北京" + System.currentTimeMillis());
    }

    @Override
    public Long[] getLongArray(Long[] longArray) {
        return longArray;
    }

    @Override
    public List<Order> getOrderList(List<Order> orderList) {
        return orderList;
    }

    @Override
    public Map<String, Order> getOrderMap(Map<String, Order> orderMap) {
        return orderMap;
    }
}
